package faceb.server.util;

import javax.servlet.http.HttpServletResponse;

public class MyStringUtils {

	public static boolean hasNullValue(String... strs) {
		if (strs == null)
			return true;
		boolean hasNull = false;
		for (String s : strs) {
			if (s == null) {
				hasNull = true;
				break;
			}

		}
		return hasNull;

	}
	
	public static void setCrossDomainx(HttpServletResponse resp){
		resp.setContentType("application/json;charset=utf8");
		resp.setHeader("Access-Control-Allow-Origin", "*");
		resp.setHeader("Access-Control-Allow-Methods", "GET,POST");
	}
}
